<?php

$home = 'normal';
$web = 'normal';
$travel = 'normal';

// checking active for home
$for_home = $this->uri->segment(1);
if (!$for_home) {$home = 'active';}

$uri2 = $this->uri->segment(2);
if ($uri2 && $uri2 == 'content') {
  $uri3 = $this->uri->segment(3);
  if ($uri3 && $uri3 == 'webarticles') {$web = 'active';}
  if ($uri3 && $uri3 == 'travelarticles') {$travel = 'active';}
}

?>
<div class="container" id="menu">

  <div class="row">
    <div class="eight columns container"><span class="logo"><a href="http://www.amitavroy.com">Amitav Roy</a></span></div>
    <div id="social-icons" class="right">
        <ul>
            <li class="git ir image-text"><?php print anchor('https://github.com/amitavroy', 'Git','target="_blank"') ?></li>
            <li class="twitter ir image-text"><?php print anchor('https://twitter.com/justread7', 'Twitter', 'target="_blank"') ?></li>
<!--            <li class="rss ir image-text">--><?php //print anchor('#', 'RSS') ?><!--</li>-->
        </ul>
    </div>
  </div>

  <div class="row">
    <div class="menu">
      <ul>
        <li><?php print anchor('', 'Home', "class='{$home}'") ?></li>
        <li><?php print anchor('justread/content/webarticles', 'Web',"class='{$web}'") ?></li>
<!--        <li><a href="#">Micro Blog</a></li>-->
        <li><?php print anchor('justread/content/travelarticles', 'Travel', "class='{$travel}'") ?></li>
      </ul>
    </div>
  </div>
</div>